package io.geekidea.boot.insurancePolicy.service.Impl;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.geekidea.boot.insurancePolicy.dto.InsuranceExcel;
import io.geekidea.boot.insurancePolicy.dto.InsurancePolicyDto;
import io.geekidea.boot.insurancePolicy.dto.UpdateIpDto;
import io.geekidea.boot.insurancePolicy.entity.InsurancePolicyList;
import io.geekidea.boot.insurancePolicy.mapper.InsurancePolicyMapper;
import io.geekidea.boot.insurancePolicy.query.*;
import io.geekidea.boot.insurancePolicy.service.InsurancePolicyService;

import io.geekidea.boot.insurancePolicy.vo.NoguaranteeordersVo;
import io.geekidea.boot.insurancePolicy.vo.PersManagVo;
import io.geekidea.boot.insurancePolicy.vo.StoreWl;
import io.geekidea.boot.insurancePolicy.vo.VipVo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
@Transactional(rollbackFor = Exception.class)
public class InsurancePolicyServiceImpl extends ServiceImpl<InsurancePolicyMapper, InsurancePolicyList> implements InsurancePolicyService {

    @Resource
    InsurancePolicyMapper insurancePolicyMapper;

        @Override
    public Page<InsurancePolicyList> getInsurancePolicyList(Page<InsurancePolicyList> page, InsurancePolicyQuery insurancePolicyQuery) {
        return insurancePolicyMapper.getInsurancePolicyList(page,insurancePolicyQuery);
    }



    @Override
    public List<PersManagVo> getEngineerList(EngineerQuery engineerQuery) {
        return insurancePolicyMapper.getEngineerList(engineerQuery);
    }

    @Override
    public List<StoreWl> getStoreWlList(StoreWlQuery storeWlQuery) {
        return insurancePolicyMapper.getStoreWlList(storeWlQuery);
    }

    @Override
    public List<VipVo> getVipList(VipQuery vipQuery) {
        return insurancePolicyMapper.getVipList(vipQuery);
    }

    @Override
    public List<NoguaranteeordersVo> getNoguranteeorder() {
        return insurancePolicyMapper.getNoguranteeorder();
    }

    @Override
    public int addinsurancePolicy(InsurancePolicyDto insurancePolicyDto) {
        return insurancePolicyMapper.addinsurancePolicy(insurancePolicyDto);
    }

    @Override
    public int updateAuditStatus(UpdateIpDto updateIpDto) {
        return insurancePolicyMapper.updateAuditStatus(updateIpDto);
    }

    @Override
    public List<InsuranceExcel> getImport(InsurancePolicyQuery insurancePolicyQuery) {
        return insurancePolicyMapper.getInsurancePolicyList(insurancePolicyQuery);
    }


    @Override
    public List<InsuranceExcel> getDownloadList(InsuranceExcelQuery insuranceExcelQuery) {
        return insurancePolicyMapper.getDownloadExcelList(insuranceExcelQuery);
    }


}
